﻿using Blazor.Diagrams.Core.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace OnWork.DataCenter.Shared.Pages.DataStandard.Designer
{
    public class LinkDto
    {
        public Guid Id { get; set; }
        public Guid? TenantId { get; set; }

        public bool Selected { get; set; }
        public string? Color { get; set; }
        public string? SelectedColor { get; set; }
        public double Width { get; set; } = 2.0;


        public string? Paths { get; set; }

        public Guid? SourceNodeId { get; set; }
        public Guid? TargetNodeId { get; set; }
        public Guid? SourcePortId { get; set; }
        public Guid? TargetPortId { get; set; }


        public LinkMarker? SourceMarker { get; set; }

        public LinkMarker? TargetMarker { get; set; }

        //public string? SourceLinkMarkerPath { get; set; }
        //public double SourceLinkMarkerWidth { get; set; }
        //public string? TargetLinkMarkerPath { get; set; }
        //public double TargetLinkMarkerWidth { get; set; }

        //public Guid DefinitionId { get; set; }

        public List<LinkVertexDto> Vertices { get; set; } = new List<LinkVertexDto>();
        public List<LinkLabelDto> Labels { get; set; } = new List<LinkLabelDto>();

        public string? Content { get; set; }
    }
}
